<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="../../tpl/head.jsp"%>
<link rel="stylesheet" href="statics/css/searchform.css">
<link rel="stylesheet" href="statics/css/ExportBusiness/tpl/newupoffer.css">
<link rel="stylesheet" href="statics/css/BasicData/tpl/newupproduct.css">
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-header layui-bg-cyan">
            <span>新增修改产品</span>
        </div>
        <div class="layui-card-body">
            <div class="layui-row">
                <div class="layui-col-md12">
                    <form class="layui-form" action="" lay-filter="editor-form" id="editor-form">
                        <div class="layui-tab layui-tab-card">
                            <ul class="layui-tab-title">
                                <li class="layui-this">产品主信息</li>
                                <li class="">日志</li>
                            </ul>
                            <div class="layui-tab-content">
                                <div class="layui-tab-item layui-show">
                                        <div class="layui-form-item zdy-item-css">
                                            <div class="layui-inline">
                                                <label class="layui-form-label xb_required">产品编码</label>
                                                <div class="layui-input-inline">
                                                    <input type="text" name="code" id="code" lay-verify="required" autocomplete="off" class="layui-input" onblur="isExisCode(this)">
                                                </div>
                                            </div>
                                            <div class="layui-inline">
                                                <label class="layui-form-label xb_required">中文名称</label>
                                                <div class="layui-input-inline">
                                                    <input type="text" name="chinaName" lay-verify="required" autocomplete="off" class="layui-input">
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-form-item zdy-item-css">
                                            <div class="layui-inline">
                                                <label class="layui-form-label xb_required">英文名称</label>
                                                <div class="layui-input-inline">
                                                    <input type="text" name="englishName" lay-verify="required" autocomplete="off" class="layui-input">
                                                </div>
                                            </div>
                                            <div class="layui-inline">
                                                <label class="layui-form-label xb_required">海关编码</label>
                                                <div class="layui-input-inline">
                                                    <select name="hgCode" id="hgCode" lay-verify="required" lay-filter="hgCodeFilter" lay-search="">
                                                        <%--<option value="">直接选择或搜索选择</option>
                                                        <option value="1">海关编码</option>--%>
                                                    </select>
                                                </div>
                                            </div>
                                        </div>

                                        <div class="layui-form-item zdy-item-css">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">增值税率</label>
                                                <div class="layui-input-inline">
                                                    <input type="text" name="vatRate" lay-verify="number" autocomplete="off" class="layui-input">
                                                </div>
                                            </div>
                                            <div class="layui-inline">
                                                <label class="layui-form-label">退税率</label>
                                                <div class="layui-input-inline">
                                                    <%--lay-verify="number|required"--%>
                                                    <input type="text" name="taxRate" lay-verify="number" autocomplete="off" class="layui-input">
                                                </div>
                                            </div>
                                        </div>

                                        <div class="layui-form-item zdy-item-css">
                                            <div class="layui-inline">
                                                <label class="layui-form-label">关税税率</label>
                                                <div class="layui-input-inline">
                                                    <input type="text" name="importTariff" lay-verify="required" autocomplete="off" class="layui-input">
                                                </div>
                                            </div>
                                            <div class="layui-inline">
                                                <label class="layui-form-label">客户货号</label>
                                                <div class="layui-input-inline">
                                                    <input type="text" name="customerCode"  autocomplete="off" class="layui-input">
                                                </div>
                                            </div>
                                        </div>

                                    <div class="layui-form-item zdy-item-css">
                                        <div class="layui-inline">
                                            <label class="layui-form-label">所属目录：</label>
                                            <div class="layui-input-inline" >
                                                <div id="directory" class="xm-select-demo"></div>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="layui-form-item zdy-item-css tj_div">
                                        <div class="layui-inline" id="imgId">
                                            <label class="layui-form-label">图片</label>
                                            <i class="layui-icon layui-icon-add-circle" style="font-size: 30px; color: #000000;line-height: 30px;" id="newimg"></i>
                                            <div class="layui-input-inline" id="addimgdiv"></div>
                                        </div>
                                        <div class="layui-inline" id="annexId">
                                            <label class="layui-form-label">附件</label>
                                            <i class="layui-icon layui-icon-add-circle" style="font-size: 30px; color: #000000;line-height: 30px;" id="newfile"></i>
                                            <div class="layui-input-inline" id="addfilediv"></div>
                                        </div>
                                    </div>

                                        <div class="layui-form-item">
                                            <label class="layui-form-label">备注</label>
                                            <div class="layui-input-block" style="margin-left: 125px;">
                                                <textarea name="remark" placeholder="请输入内容" class="layui-textarea"></textarea>
                                            </div>
                                        </div>

                                    </div>

                            <div  class="layui-tab-item">
                                <table class="layui-table" id="infoselect" lay-filter="infotable"></table>
                            </div>
                            </div>
                        </div>
                        <table class="layui-table" id="productselect" lay-filter="producttable"></table>


                        <div class="layui-tab layui-tab-card" id="hidden">
                            <ul class="layui-tab-title">
                                <li class="layui-this">产品规格配件</li>
                                <li class="">供应商</li>
                                <li class="">产品箱规</li>
                            </ul>
                            <div class="layui-tab-content">
                                <div class="layui-tab-item layui-show">
                                    <table class="layui-table" id="productsaselect" lay-filter="productsatable"></table>
                                </div>
                                <div  class="layui-tab-item">
                                    <table class="layui-table" id="asupplierselect" lay-filter="asuppliertable"></table>
                                </div>
                                <div  class="layui-tab-item">
                                    <table class="layui-table" id="boxGaugeSelect" lay-filter="boxGaugeTable"></table>
                                </div>
                            </div>
                        </div>
                        <%--底部按钮--%>
                        <div class="padding text-right">
                            <button type="button" class="layui-btn layui-btn-normal" lay-submit  lay-filter="form-save">提交</button>
                            <a type="button" class="layui-btn layui-btn-primary" id="shutdown">关闭</a>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/html" id="productcodeselect">
    <div class="layui-input-inline">
        <div class="layui-form-select ySearchSelect y_{{d.tempId}}" data-id="{{d.tempId}}">
            <div class="layui-input value_{{d.tempId}}">{{d.productCode==undefined?"":d.productCode}}</div>
            <i class="layui-edge"></i>
            <table class="layui-table zdy" id="productcodeselect_{{d.tempId}}" lay-filter="productcodeselecttable_{{d.tempId}}"></table>
        </div>
    </div>
</script>
<script type="text/html" id="productsatoolbar">
    {{# if(addFlag || (!addFlag && isUsed === "0")){ }}
    <a class="layui-btn layui-btn-sm" data-type="getCheckData" lay-event="new">添加</a>
    <a class="layui-btn layui-btn-sm layui-btn-danger"  lay-event="delet">删除</a>
    {{# } }}
</script>
<script type="text/html" id="asuppliertoolbar">
    <a class="layui-btn layui-btn-sm" data-type="getCheckData" lay-event="new">添加</a>
    <a class="layui-btn layui-btn-sm layui-btn-danger"  lay-event="delet">删除</a>
</script>
<script type="text/html" id="producttoolbar">
    {{# if(addFlag || (!addFlag && isUsed === "0")){ }}
    <a class="layui-btn layui-btn-sm" data-type="getCheckData" lay-event="new">添加</a>
    <a class="layui-btn layui-btn-sm layui-btn-danger"  lay-event="delet">删除</a>
    {{# } }}
</script>
<script type="text/html" id="boxGaugeToolbar">
    {{# if(addFlag || (!addFlag && isUsed === "0")){ }}
    <a class="layui-btn layui-btn-sm" data-type="getCheckData" lay-event="new">添加</a>
    <a class="layui-btn layui-btn-sm layui-btn-danger"  lay-event="delet">删除</a>
    {{# } }}
</script>

<script type="text/html" id="productsaup">
    {{# if(addFlag || (!addFlag && isUsed === "0")){ }}
    <%--<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="productsaup">修改</a>--%>
    <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="productsade">删除</a>
    {{# } }}
</script>
<script type="text/html" id="asupplierup">
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="asupplierup">修改</a>
    <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="asupplierde">删除</a>
</script>
<script type="text/html" id="productup">
    {{# if(addFlag || (!addFlag && isUsed === "0")){ }}
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="productup">修改</a>
    <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="productde">删除</a>
    {{# } }}
</script>
<script type="text/html" id="boxGaugeSet">
    {{# if(addFlag || (!addFlag && isUsed === "0")){ }}
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="boxGaugeUp">修改</a>
    <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="boxGaugeDel">删除</a>
    {{# } }}
</script>


<%@ include file="../../tpl/foot.jsp"%>
<script src="statics/js/BasicData/tpl/newOtherProduct.js"></script>